home *** CD-ROM | disk | FTP | other *** search
-
- RUN
- Command
-
- Michael J. Mefford 1988 No. 2 (Utilities)
-
-
- Purpose: Executes .COM, .EXE, or .BAT files from any disk directory
- without requiring changing directories or specifying a path to the file.
-
- Format: RUN [/C|/S][d:][directory]filename [args]
-
- Remarks: Unless the optional directory parameter is specified, RUN
- defaults to a diskwide search to find the executable filename. Any additional
- arguments (args) that would normally be specified on the DOS command line may
- be added to the filename that RUN is called upon to execute. A drive
- specifier (d:) must be used if the file to be run is not on the current drive.
- During its search, any keypress with abort the operation of RUN.COM.
-
- RUN can either operate from the current directory (its default mode,
- designated by the optional /S switch) or it can change to the directory (/C)
- in which it finds the desired program before executing it. The /C option is
- required by programs such as WordStar, which can find their overlay files
- only when loaded from within the directory in which they are stored. The /C
- option is also required to run .BAT files under DOS 2.x (see Note below).
-
- Note: RUN overcomes the inability of DOS 2.x to handle .COM and .EXE
- files that are prefixed with a path. Batch files under DOS 2.x, however,
- still require RUN's /C option. If desired, the /C option can be made the RUN
- default mode, with /S as its selectable alternative. To make the change, put
- a copy of RUN in the same directory with DEBUG.COM, and enter the following
- commands:
-
-
- DEBUG RUN.COM NOTE: The current file RUN.COM which
- E 15B 1 is included in RUN.ARC has ALREADY
- E 1E8 "C" been modified to make the "C" option
- W the default, as it is the most con-
- Q venient when running files that call
- for other open files in its directory.
-
-
- If you should decide that you want to reverse the process,
- use the same procedure with the following commands:
-
-
- DEBUG RUN.COM
- E 15B 0
- E 1E8 "S"
- W
- Q
-
- Use RUN.COM and enjoy!